Exercise 7 (Homework 2).
(regular languages,
homomorphism,
minimization of DFAs)
Inverse homomorphism of a regular language is regular
Show that L=\{w \in \{0,1\}^* \mid \mathtt{value}_2(w)\in 3\mathbb N\} is a regular language. Compute explicitly the minimum DFA for the language \sigma^{-1}(L), where \sigma: \{a,b,c\}\to \{0,1\} is the homomorphism defined by
- \sigma(a)=01,
\sigma(b)=0, and
\sigma(c)=\lambda. - \sigma(a)=10,
\sigma(b)=0, and
\sigma(c)=\lambda. - \sigma(a)=00,
\sigma(b)=11, and
\sigma(c)=\lambda. - \sigma(a)=001,
\sigma(b)=101, and
\sigma(c)=0.
- \sigma(a)=01,
Given a DFA A and a morphism \sigma, what is the cost of constructing a DFA for the language \sigma^{-1}(L(A))?
Does the construction used to obtain the DFA for \sigma^{-1}(L(A)) give us a minimum DFA if we started with a minimum DFA A?
Does the construction used to obtain the DFA for \sigma^{-1}(L(A)) still work if we started with an NFA A?